package model;

import lombok.Data;
import util.DateUtils;

import java.util.Date;

@Data
public class Blog {

    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;

    public String getCreateTime() {
        return DateUtils.parseDate(createTime);
    }
}
